Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Drupal\aggregator; use Drupal\Core\Entity\EntityViewBuilder; /** * Vie..
Decoded Output download
<?php
namespace Drupalggregator;
use Drupal\Core\Entity\EntityViewBuilder;
/**
* View builder handler for aggregator feed items.
*/
class ItemViewBuilder extends EntityViewBuilder {
/**
* {@inheritdoc}
*/
public function buildComponents(array &$build, array $entities, array $displays, $view_mode) {
parent::buildComponents($build, $entities, $displays, $view_mode);
foreach ($entities as $id => $entity) {
$bundle = $entity->bundle();
$display = $displays[$bundle];
if ($display->getComponent('description')) {
$build[$id]['description'] = [
'#markup' => $entity->getDescription(),
'#allowed_tags' => _aggregator_allowed_tags(),
'#prefix' => '<div class="item-description">',
'#suffix' => '</div>',
];
}
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Drupal\aggregator;
use Drupal\Core\Entity\EntityViewBuilder;
/**
* View builder handler for aggregator feed items.
*/
class ItemViewBuilder extends EntityViewBuilder {
/**
* {@inheritdoc}
*/
public function buildComponents(array &$build, array $entities, array $displays, $view_mode) {
parent::buildComponents($build, $entities, $displays, $view_mode);
foreach ($entities as $id => $entity) {
$bundle = $entity->bundle();
$display = $displays[$bundle];
if ($display->getComponent('description')) {
$build[$id]['description'] = [
'#markup' => $entity->getDescription(),
'#allowed_tags' => _aggregator_allowed_tags(),
'#prefix' => '<div class="item-description">',
'#suffix' => '</div>',
];
}
}
}
}
Function Calls
None |
Stats
MD5 | 037a0aa35bc04ed2a0decb568980ac55 |
Eval Count | 0 |
Decode Time | 95 ms |