Entity::entityTypeManager

protected Entity::entityTypeManager() Gets the entity type manager. Return value \Drupal\Core\Entity\EntityTypeManagerInterface File core/lib/Drupal/Core/Entity/Entity.php, line 86 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code protected function entityTypeManager() { return \Drupal::entityTypeManager(); }

BlockForm::themeSwitch

public BlockForm::themeSwitch($form, FormStateInterface $form_state) Handles switching the available regions based on the selected theme. File core/modules/block/src/BlockForm.php, line 210 Class BlockForm Provides form for block instance forms. Namespace Drupal\block Code public function themeSwitch($form, FormStateInterface $form_state) { $form['region']['#options'] = system_region_list($form_state->getValue('theme'), REGIONS_VISIBLE); return $form['region']; }

comment_entity_view

comment_entity_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) Implements hook_entity_view(). File core/modules/comment/comment.module, line 212 Enables users to comment on published content. Code function comment_entity_view(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) { if ($entity instanceof FieldableEntityInterface && $view_mode == 'rss' && $display->getComponent('links')

statistics_ranking

statistics_ranking() Implements hook_ranking(). File core/modules/statistics/statistics.module, line 162 Logs and displays content statistics for a site. Code function statistics_ranking() { if (\Drupal::config('statistics.settings')->get('count_content_views')) { return array( 'views' => array( 'title' => t('Number of views'), 'join' => array( 'type' => 'LEFT', 'table' => 'node_counter', 'alias' => 'node_counter',

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;

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

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(); }

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