Drupal 8  8.0.2
FeedViewBuilder Class Reference
Inheritance diagram for FeedViewBuilder:

Public Member Functions

 __construct (EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, Config $config)
 
 buildComponents (array &$build, array $entities, array $displays, $view_mode)
 
- Public Member Functions inherited from EntityViewBuilder
 __construct (EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager)
 
 view (EntityInterface $entity, $view_mode= 'full', $langcode=NULL)
 
 viewMultiple (array $entities=array(), $view_mode= 'full', $langcode=NULL)
 
 build (array $build)
 
 buildMultiple (array $build_list)
 
 buildComponents (array &$build, array $entities, array $displays, $view_mode)
 
 getCacheTags ()
 
 resetCache (array $entities=NULL)
 
 viewField (FieldItemListInterface $items, $display_options=array())
 
 viewFieldItem (FieldItemInterface $item, $display=array())
 
- Public Member Functions inherited from EntityHandlerBase
 setModuleHandler (ModuleHandlerInterface $module_handler)
 

Static Public Member Functions

static createInstance (ContainerInterface $container, EntityTypeInterface $entity_type)
 
- Static Public Member Functions inherited from EntityViewBuilder
static createInstance (ContainerInterface $container, EntityTypeInterface $entity_type)
 

Additional Inherited Members

- Protected Member Functions inherited from EntityViewBuilder
 getBuildDefaults (EntityInterface $entity, $view_mode)
 
 alterBuild (array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode)
 
 isViewModeCacheable ($view_mode)
 
 getSingleFieldDisplay ($entity, $field_name, $display_options)
 
- Protected Member Functions inherited from EntityHandlerBase
 moduleHandler ()
 
- Protected Attributes inherited from EntityViewBuilder
 $entityTypeId
 
 $entityType
 
 $entityManager
 
 $cacheBin = 'render'
 
 $languageManager
 
 $singleFieldDisplays
 
- Protected Attributes inherited from EntityHandlerBase
 $moduleHandler
 

Detailed Description

Render controller for aggregator feed items.

Constructor & Destructor Documentation

__construct ( EntityTypeInterface  $entity_type,
EntityManagerInterface  $entity_manager,
LanguageManagerInterface  $language_manager,
Config  $config 
)

Constructs a new FeedViewBuilder.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type definition.
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager service.
\Drupal\Core\Language\LanguageManagerInterface$language_managerThe language manager.
\Drupal\Core\Config\Config$configThe 'aggregator.settings' config.

References Drupal\config().

Here is the call graph for this function:

Member Function Documentation

buildComponents ( array &  $build,
array  $entities,
array  $displays,
  $view_mode 
)

{Builds the component fields and properties of a set of entities.

Parameters
&$buildThe renderable array representing the entity content.
\Drupal\Core\Entity\EntityInterface[]$entities The entities whose content is being built.
\Drupal\Core\Entity\Display\EntityViewDisplayInterface[]$displays The array of entity view displays holding the display options configured for the entity components, keyed by bundle name.
string$view_modeThe view mode in which the entity is being viewed.
}

Implements EntityViewBuilderInterface.

References Drupal\config(), Drupal\entityManager(), Url\fromRoute(), Url\fromUri(), and t().

Here is the call graph for this function:

static createInstance ( ContainerInterface  $container,
EntityTypeInterface  $entity_type 
)
static

{}


The documentation for this class was generated from the following file: