Select::orderRandom

public Select::orderRandom() Orders the result set by a random value. This may be stacked with other orderBy() calls. If so, the query will order by each specified field, including this one, in the order called. Although this method may be called multiple times on the same query, doing so is not particularly useful. Note: The method used by most drivers may not scale to very large result sets. If you need to work with extremely large data sets, you may create your own database driver by subclas

NodeGrantDatabaseStorageInterface::checkAll

public NodeGrantDatabaseStorageInterface::checkAll(AccountInterface $account) Checks all grants for a given account. Parameters \Drupal\Core\Session\AccountInterface $account: A user object representing the user for whom the operation is to be performed. Return value int. Status of the access check. File core/modules/node/src/NodeGrantDatabaseStorageInterface.php, line 24 Class NodeGrantDatabaseStorageInterface Provides an interface for node access grant storage. Namespace Drupal\node

EntityViewController

Defines a generic controller to render a single entity. Hierarchy class \Drupal\Core\Entity\Controller\EntityViewController implements ContainerInjectionInterface File core/lib/Drupal/Core/Entity/Controller/EntityViewController.php, line 15 Namespace Drupal\Core\Entity\Controller Members Name Modifiers Type Description EntityViewController::$entityManager protected property The entity manager EntityViewController::$renderer protected property The renderer service

NodeViewController::view

public NodeViewController::view(EntityInterface $node, $view_mode = 'full', $langcode = NULL) Provides a page to render a single entity. Parameters \Drupal\Core\Entity\EntityInterface $_entity: The Entity to be rendered. Note this variable is named $_entity rather than $entity to prevent collisions with other named placeholders in the route. string $view_mode: (optional) The view mode that should be used to display the entity. Defaults to 'full'. Return value array A render array as expected

PermissionHandler::$controllerResolver

The controller resolver. Type: \Drupal\Core\Controller\ControllerResolverInterface File core/modules/user/src/PermissionHandler.php, line 71 Class PermissionHandler Provides the available permissions based on yml files. Namespace Drupal\user Code protected $controllerResolver;

ViewUI::getEntityTypeId

public ViewUI::getEntityTypeId() Gets the ID of the type of the entity. Return value string The entity type ID. Overrides EntityInterface::getEntityTypeId File core/modules/views_ui/src/ViewUI.php, line 929 Class ViewUI Stores UI related temporary settings. Namespace Drupal\views_ui Code public function getEntityTypeId() { return $this->storage->getEntityTypeId(); }

ConfigEntityStorage::getIDFromConfigName

public static ConfigEntityStorage::getIDFromConfigName($config_name, $config_prefix) Extracts the configuration entity ID from the full configuration name. Parameters string $config_name: The full configuration name to extract the ID from; for example, 'views.view.archive'. string $config_prefix: The config prefix of the configuration entity; for example, 'views.view'. Return value string The ID of the configuration entity. Overrides ConfigEntityStorageInterface::getIDFromConfigName File core

Feed::label

public Feed::label() Gets the label of the entity. Return value string|null The label of the entity, or NULL if there is no label defined. Overrides ContentEntityBase::label File core/modules/aggregator/src/Entity/Feed.php, line 53 Class Feed Defines the aggregator feed entity class. Namespace Drupal\aggregator\Entity Code public function label() { return $this->get('title')->value; }

EntityManager::clearCachedDefinitions

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

Feed::getWebsiteUrl

public Feed::getWebsiteUrl() Returns the parent website of the feed. Return value string The parent website of the feed. Overrides FeedInterface::getWebsiteUrl File core/modules/aggregator/src/Entity/Feed.php, line 262 Class Feed Defines the aggregator feed entity class. Namespace Drupal\aggregator\Entity Code public function getWebsiteUrl() { return $this->get('link')->value; }