QueryFactory::getSubscribedEvents

static QueryFactory::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) array('eventNa

AccountProxy::isAuthenticated

public AccountProxy::isAuthenticated() Returns TRUE if the account is authenticated. Return value bool TRUE if the account is authenticated. Overrides AccountInterface::isAuthenticated File core/lib/Drupal/Core/Session/AccountProxy.php, line 88 Class AccountProxy A proxied implementation of AccountInterface. Namespace Drupal\Core\Session Code public function isAuthenticated() { return $this->getAccount()->isAuthenticated(); }

MimeTypeGuesser::addGuesser

public MimeTypeGuesser::addGuesser(MimeTypeGuesserInterface $guesser, $priority = 0) Appends a MIME type guesser to the guessers chain. Parameters \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $guesser: The guesser to be appended. int $priority: The priority of the guesser being added. Return value $this File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 87 Class MimeTypeGuesser Defines a MIME type guesser that also supports stream wrapper paths.

AccountProxy::setAccount

public AccountProxy::setAccount(AccountInterface $account) Sets the currently wrapped account. Setting the current account is highly discouraged! Instead, make sure to inject the desired user object into the dependent code directly. A preferable method of account impersonation is to use \Drupal\Core\Session\AccountSwitcherInterface::switchTo() and \Drupal\Core\Session\AccountSwitcherInterface::switchBack(). Parameters \Drupal\Core\Session\AccountInterface $account: The current account. Overrid

ConfigImporterFieldPurger::process

public static ConfigImporterFieldPurger::process(array &$context, ConfigImporter $config_importer) Processes fields targeted for purge as part of a configuration sync. This takes care of deleting the field if necessary, and purging the data on the fly. Parameters array $context: The batch context. \Drupal\Core\Config\ConfigImporter $config_importer: The config importer. File core/modules/field/src/ConfigImporterFieldPurger.php, line 25 Class ConfigImporterFieldPurger Processes field p

RefinableCacheableDependencyTrait::mergeCacheMaxAge

public RefinableCacheableDependencyTrait::mergeCacheMaxAge($max_age) Merges the maximum age (in seconds) with the existing maximum age. The max age will be set to the given value if it is lower than the existing value. Parameters int $max_age: The max age to associate. Return value $this Throws \InvalidArgumentException Thrown if a non-integer value is supplied. Overrides RefinableCacheableDependencyInterface::mergeCacheMaxAge File core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait

FormStateDecoratorBase::isProgrammed

public FormStateDecoratorBase::isProgrammed() Returns if this form was submitted programmatically. Return value bool If TRUE, the form was submitted programmatically. Overrides FormStateInterface::isProgrammed File core/lib/Drupal/Core/Form/FormStateDecoratorBase.php, line 235 Class FormStateDecoratorBase Decorates another form state. Namespace Drupal\Core\Form Code public function isProgrammed() { return $this->decoratedFormState->isProgrammed(); }

PoDatabaseWriter

Gettext PO writer working with the locale module database. Hierarchy class \Drupal\locale\PoDatabaseWriter implements PoWriterInterface File core/modules/locale/src/PoDatabaseWriter.php, line 13 Namespace Drupal\locale Members Name Modifiers Type Description PoDatabaseWriter::$header private property Header of the po file written to the database. PoDatabaseWriter::$langcode private property Language code of the language being written to the database. PoDatabase

MenuLinkTree::getExpanded

public MenuLinkTree::getExpanded($menu_name, array $parents) Finds expanded links in a menu given a set of possible parents. Parameters string $menu_name: The menu name. array $parents: One or more parent IDs to match. Return value array The menu link IDs that are flagged as expanded in this menu. Overrides MenuLinkTreeInterface::getExpanded File core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 294 Class MenuLinkTree Implements the loading, transforming and rendering of menu link trees.

EntityViewsDataInterface

Provides an interface to integrate an entity type with views. Hierarchy interface \Drupal\views\EntityViewsDataInterface File core/modules/views/src/EntityViewsDataInterface.php, line 10 Namespace Drupal\views Members Name Modifiers Type Description EntityViewsDataInterface::getViewsData public function Returns views data for the entity type. EntityViewsDataInterface::getViewsTableForEntityType public function Gets the table of an entity type to be used as base t