ViewUI::getCacheMaxAge

public ViewUI::getCacheMaxAge() The maximum age for which this object may be cached. Return value int The maximum time in seconds that this object may be cached. Overrides CacheableDependencyInterface::getCacheMaxAge File core/modules/views_ui/src/ViewUI.php, line 1241 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function getCacheMaxAge() { return $this->storage->getCacheMaxAge(); }

VariantInterface::access

public VariantInterface::access(AccountInterface $account = NULL) Determines if this display variant is accessible. Parameters \Drupal\Core\Session\AccountInterface $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL. Return value bool TRUE if this display variant is accessible, FALSE otherwise. File core/lib/Drupal/Core/Display/VariantInterface.php, line 73 Class VariantInterface Provides an interface for DisplayVariant

$base_path

The base path of the Drupal installation. This will at least default to '/'. See also \Drupal\Core\DrupalKernel::initializeRequestGlobals() File core/globals.api.php, line 22 These are the global variables that Drupal uses. Code global $base_path;

EntityOperations::updateOrCreateFromEntity

protected EntityOperations::updateOrCreateFromEntity(EntityInterface $entity) Creates or updates the moderation state of an entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to update or create a moderation state for. File core/modules/content_moderation/src/EntityOperations.php, line 142 Class EntityOperations Defines a class for reacting to entity events. Namespace Drupal\content_moderation Code protected function updateOrCreateFromEntity(EntityInterface $en

ConfigurableLanguageManager::getNativeLanguages

public ConfigurableLanguageManager::getNativeLanguages() Returns a list of languages set up on the site in their native form. Return value \Drupal\Core\Language\LanguageInterface[] An associative array of languages, keyed by the language code, ordered by weight ascending and name ascending. Overrides LanguageManager::getNativeLanguages File core/modules/language/src/ConfigurableLanguageManager.php, line 326 Class ConfigurableLanguageManager Overrides default LanguageManager to provide con

Entity::toArray

public Entity::toArray() Gets an array of all property values. Return value mixed[] An array of property values, keyed by property name. Overrides EntityInterface::toArray File core/lib/Drupal/Core/Entity/Entity.php, line 587 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code public function toArray() { return array(); }

ViewsRelationship

Defines a Plugin annotation object for views relationship handlers. Hierarchy class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterfaceclass \Drupal\Component\Annotation\PluginIDclass \Drupal\views\Annotation\ViewsHandlerAnnotationBaseclass \Drupal\views\Annotation\ViewsRelationship See also \Drupal\views\Plugin\views\relationship\RelationshipPluginBase Related topics Annotations Annotations for class discovery and metadata description. Views relationship handlers

EntityTypeManagerInterface::getRouteProviders

public EntityTypeManagerInterface::getRouteProviders($entity_type) Gets all route provider instances. Parameters string $entity_type: The entity type for this route providers. Return value \Drupal\Core\Entity\Routing\EntityRouteProviderInterface[] File core/lib/Drupal/Core/Entity/EntityTypeManagerInterface.php, line 80 Class EntityTypeManagerInterface Provides an interface for entity type managers. Namespace Drupal\Core\Entity Code public function getRouteProviders($entity_type);

BlockController::__construct

public BlockController::__construct(ThemeHandlerInterface $theme_handler) Constructs a new BlockController instance. Parameters \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler. File core/modules/block/src/Controller/BlockController.php, line 29 Class BlockController Controller routines for admin block routes. Namespace Drupal\block\Controller Code public function __construct(ThemeHandlerInterface $theme_handler) { $this->themeHandler = $theme_handle

ContentEntityBase::__unset

public ContentEntityBase::__unset($name) Implements the magic method for unset(). File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 967 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function __unset($name) { // Unsetting a field means emptying it. if ($this->hasField($name)) { $this->get($name)->setValue(array()); } // For non-field properties, unset the internal va