Entity::postLoad

public static Entity::postLoad(EntityStorageInterface $storage, array &$entities) Acts on loaded entities. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides EntityInterface::postLoad File core/lib/Drupal/Core/Entity/Entity.php, line 448 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code public static function postLoad(EntityStorageInter

EntityManager::clearCachedBundles

public EntityManager::clearCachedBundles() Overrides EntityTypeBundleInfoInterface::clearCachedBundles Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/lib/Drupal/Core/Entity/EntityManager.php, line 225 Class EntityManager Provides a wrapper around many other services relating to entities. Namespace Drupal\Core\Entity Code public function clearCachedBundles() { $this->container->get('entity_type.bundle.info')->clearCachedBundles(); }

EntityAccessControlHandler::processAccessHookResults

protected EntityAccessControlHandler::processAccessHookResults(array $access) We grant access to the entity if both of these conditions are met: No modules say to deny access. At least one module says to grant access. Parameters \Drupal\Core\Access\AccessResultInterface[] $access: An array of access results of the fired access hook. Return value \Drupal\Core\Access\AccessResultInterface The combined result of the various access checks' results. All their cacheability metadata is merged as w

EntityViewsData::processViewsDataForTextLong

protected EntityViewsData::processViewsDataForTextLong($table, FieldDefinitionInterface $field_definition, array &$views_field, $field_column_name) Processes the views data for a text field with formatting. Parameters string $table: The table the field is added to. \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition. array $views_field: The views field data. string $field_column_name: The field column being processed. File core/modules/views/src/EntityViewsD

MaintenanceModeSubscriber::$bareHtmlPageRenderer

The bare HTML page renderer. Type: \Drupal\Core\Render\BareHtmlPageRendererInterface File core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 59 Class MaintenanceModeSubscriber Maintenance mode subscriber for controller requests. Namespace Drupal\Core\EventSubscriber Code protected $bareHtmlPageRenderer;

ShortcutInterface::setWeight

public ShortcutInterface::setWeight($weight) Sets the weight among shortcuts with the same depth. Parameters int $weight: The shortcut weight. Return value \Drupal\shortcut\ShortcutInterface The called shortcut entity. File core/modules/shortcut/src/ShortcutInterface.php, line 48 Class ShortcutInterface Provides an interface defining a shortcut entity. Namespace Drupal\shortcut Code public function setWeight($weight);

AccountInterface::getPreferredAdminLangcode

public AccountInterface::getPreferredAdminLangcode($fallback_to_default = TRUE) Returns the preferred administrative language code of the account. Defines which language is used on administrative pages. Parameters bool $fallback_to_default: (optional) Whether the return value will fall back to the site default language if the user has no administration language preference. Return value string The language code that is preferred by the account for administration pages. If the preferred languag

AccessAwareRouter::getRouteCollection

public AccessAwareRouter::getRouteCollection() Gets the RouteCollection instance associated with this Router. Return value RouteCollection A RouteCollection instance Overrides RouterInterface::getRouteCollection File core/lib/Drupal/Core/Routing/AccessAwareRouter.php, line 116 Class AccessAwareRouter A router class for Drupal with access check and upcasting. Namespace Drupal\Core\Routing Code public function getRouteCollection() { return $this->chainRouter->getRouteCollection(

PhpBackend::removeBin

public PhpBackend::removeBin() Remove a cache bin. Overrides CacheBackendInterface::removeBin File core/lib/Drupal/Core/Cache/PhpBackend.php, line 228 Class PhpBackend Defines a PHP cache implementation. Namespace Drupal\Core\Cache Code public function removeBin() { $this->cache = array(); $this->storage()->deleteAll(); }

ViewEditForm::getDisplayTab

public ViewEditForm::getDisplayTab($view) Returns a renderable array representing the edit page for one display. File core/modules/views_ui/src/ViewEditForm.php, line 338 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function getDisplayTab($view) { $build = array(); $display_id = $this->displayID; $display = $view->getExecutable()->displayHandlers->get($display_id); // If the plugin doesn't exist, display an error