AccessResultForbidden::$reason

The reason why access is forbidden. For use in error messages. Type: string|null File core/lib/Drupal/Core/Access/AccessResultForbidden.php, line 15 Class AccessResultForbidden Value object indicating a forbidden access result, with cacheability metadata. Namespace Drupal\Core\Access Code protected $reason;

ImageFactory::getToolkitId

public ImageFactory::getToolkitId() Gets the ID of the image toolkit currently in use. Return value string The ID of the image toolkit in use by the image factory. File core/lib/Drupal/Core/Image/ImageFactory.php, line 56 Class ImageFactory Provides a factory for image objects. Namespace Drupal\Core\Image Code public function getToolkitId() { return $this->toolkitId; }

PhpTransliteration::__construct

public PhpTransliteration::__construct($data_directory = NULL) Constructs a transliteration object. Parameters string $data_directory: (optional) The directory where data files reside. If omitted, defaults to subdirectory 'data' underneath the directory where the class's PHP file resides. File core/lib/Drupal/Component/Transliteration/PhpTransliteration.php, line 69 Class PhpTransliteration Implements transliteration without using the PECL extensions. Namespace Drupal\Component\Transli

FileSystemInterface::chmod

public FileSystemInterface::chmod($uri, $mode = NULL) Sets the permissions on a file or directory. This function will use the file_chmod_directory and file_chmod_file settings for the default modes for directories and uploaded/generated files. By default these will give everyone read access so that users accessing the files with a user account without the webserver group (e.g. via FTP) can read these files, and give group write permissions so webserver group members (e.g. a vhost account) can a

EntityType::getUriCallback

public EntityType::getUriCallback() Gets a callable that can be used to provide the entity URI. This is only called if there is no matching link template for the link relationship type, and there is no bundle-specific callback provided. Return value callable|null A valid callback that is passed the entity or NULL if none is specified. Overrides EntityTypeInterface::getUriCallback File core/lib/Drupal/Core/Entity/EntityType.php, line 778 Class EntityType Provides an implementation of an en

TermDeleteForm::getRedirectUrl

protected TermDeleteForm::getRedirectUrl() Returns the URL where the user should be redirected after deletion. Return value \Drupal\Core\Url The redirect URL. Overrides EntityDeleteFormTrait::getRedirectUrl File core/modules/taxonomy/src/Form/TermDeleteForm.php, line 26 Class TermDeleteForm Provides a deletion confirmation form for taxonomy term. Namespace Drupal\taxonomy\Form Code protected function getRedirectUrl() { return $this->getCancelUrl(); }

Node::setOwner

public Node::setOwner(UserInterface $account) Sets the entity owner's user entity. Parameters \Drupal\user\UserInterface $account: The owner user entity. Return value $this Overrides EntityOwnerInterface::setOwner File core/modules/node/src/Entity/Node.php, line 285 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setOwner(UserInterface $account) { $this->set('uid', $account->id()); return $this; }

FormatterInterface::view

public FormatterInterface::view(FieldItemListInterface $items, $langcode = NULL) Builds a renderable array for a fully themed field. Parameters \Drupal\Core\Field\FieldItemListInterface $items: The field values to be rendered. string $langcode: (optional) The language that should be used to render the field. Defaults to the current content language. Return value array A renderable array for a themed field with its label and all its values. File core/lib/Drupal/Core/Field/FormatterInterface.ph

hook_uninstall

hook_uninstall() Remove any information that the module sets. The information that the module should remove includes: state that the module has set using \Drupal::state() modifications to existing tables The module should not remove its entry from the module configuration. Database tables defined by hook_schema() will be removed automatically. The uninstall hook must be implemented in the module's .install file. It will fire when the module gets uninstalled but before the module's database ta

EntityDefinitionUpdateManager::getChangeSummary

public EntityDefinitionUpdateManager::getChangeSummary() Gets a human readable summary of the detected changes. Return value array An associative array keyed by entity type id. Each entry is an array of human-readable strings, each describing a change. Overrides EntityDefinitionUpdateManagerInterface::getChangeSummary File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php, line 44 Class EntityDefinitionUpdateManager Manages entity definition updates. Namespace Drupal\Core\E