AccessResultAllowed

Value object indicating an allowed access result, with cacheability metadata. Hierarchy class \Drupal\Core\Access\AccessResult implements AccessResultInterface, RefinableCacheableDependencyInterface uses RefinableCacheableDependencyTraitclass \Drupal\Core\Access\AccessResultAllowed File core/lib/Drupal/Core/Access/AccessResultAllowed.php, line 8 Namespace Drupal\Core\Access Members Name Modifiers Type Description AccessResult::allowed public static function Creates an A

FileCacheFactory::setConfiguration

public static FileCacheFactory::setConfiguration($configuration) Sets the configuration to use for constructing future file cache objects. Parameters array $configuration: The configuration to use. File core/lib/Drupal/Component/FileCache/FileCacheFactory.php, line 92 Class FileCacheFactory Creates a FileCache object. Namespace Drupal\Component\FileCache Code public static function setConfiguration($configuration) { static::$configuration = $configuration; }

hook_entity_bundle_field_info_alter

hook_entity_bundle_field_info_alter(&$fields, \Drupal\Core\Entity\EntityTypeInterface $entity_type, $bundle) Alter bundle field definitions. @todo WARNING: This hook will be changed in https://www.drupal.org/node/2346347. Parameters \Drupal\Core\Field\FieldDefinitionInterface[] $fields: The array of bundle field definitions. \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. string $bundle: The bundle. See also hook_entity_base_field_info() hook_entity_base_

FeedViewBuilder::__construct

public FeedViewBuilder::__construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, Config $config) Constructs a new FeedViewBuilder. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service. \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager. \Drupal\Core\Config\Confi

EntityTypeInterface::getAdminPermission

public EntityTypeInterface::getAdminPermission() Gets the name of the default administrative permission. The default \Drupal\Core\Entity\EntityAccessControlHandler class checks this permission for all operations in its checkAccess() method. Entities with more complex permissions can extend this class to do their own access checks. Return value string|bool File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 387 Class EntityTypeInterface Provides an interface for an entity type a

ModuleHandler::load

public ModuleHandler::load($name) Includes a module's .module file. This prevents including a module more than once. Parameters string $name: The name of the module to load. Return value bool TRUE if the item is loaded or has already been loaded. Overrides ModuleHandlerInterface::load File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 121 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace Drupal\Core\Extension Code public function load($name)

filter_formats

filter_formats(AccountInterface $account = NULL) Retrieves a list of enabled text formats, ordered by weight. Parameters \Drupal\Core\Session\AccountInterface|null $account: (optional) If provided, only those formats that are allowed for this user account will be returned. All enabled formats will be returned otherwise. Defaults to NULL. Return value \Drupal\filter\FilterFormatInterface[] An array of text format objects, keyed by the format ID and ordered by weight. See also filter_formats_r

SSH::copyDirectoryJailed

protected SSH::copyDirectoryJailed($source, $destination) Copies a directory. We need a separate method to make sure the $destination is in the jail. Parameters string $source: The source path. string $destination: The destination path. Overrides FileTransfer::copyDirectoryJailed File core/lib/Drupal/Core/FileTransfer/SSH.php, line 57 Class SSH The SSH connection class for the update module. Namespace Drupal\Core\FileTransfer Code protected function copyDirectoryJailed($source, $desti

EntityDisplayBase::getTargetEntityTypeId

public EntityDisplayBase::getTargetEntityTypeId() Gets the entity type for which this display is used. Return value string The entity type id. Overrides EntityDisplayInterface::getTargetEntityTypeId File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 198 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code public function getTargetEntityTypeId() { return $this->targetEntityType; }

MenuLinkBase::getUrlObject

public MenuLinkBase::getUrlObject($title_attribute = TRUE) Returns a URL object containing either the external path or route. Parameters bool $title_attribute: (optional) If TRUE, add the link description as the title attribute if the description is not empty. Return value \Drupal\Core\Url A URL object containing either the external path or route. Overrides MenuLinkInterface::getUrlObject File core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 122 Class MenuLinkBase Defines a base menu lin