entity_view_multiple

entity_view_multiple(array $entities, $view_mode, $langcode = NULL, $reset = FALSE) Returns the render array for the provided entities. $view_builder = \Drupal::entityTypeManager() ->getViewBuilder($entity->getEntityTypeId()); return $view_builder->viewMultiple($entities, $view_mode, $langcode); Parameters \Drupal\Core\Entity\EntityInterface[] $entities: The entities to be rendered, must be of the same type. string $view_mode: The view mode that should be used to display the entity

DiffFormatter::_block_header

protected DiffFormatter::_block_header($xbeg, $xlen, $ybeg, $ylen) File core/lib/Drupal/Component/Diff/DiffFormatter.php, line 143 Class DiffFormatter A class to format Diffs Namespace Drupal\Component\Diff Code protected function _block_header($xbeg, $xlen, $ybeg, $ylen) { if ($xlen > 1) { $xbeg .= "," . ($xbeg + $xlen - 1); } if ($ylen > 1) { $ybeg .= "," . ($ybeg + $ylen - 1); } return $xbeg . ($xlen ? ($ylen ? 'c' : 'd') : 'a') . $ybeg; }

ContentTranslationHandler::checkFieldStorageDefinitionTranslatability

protected ContentTranslationHandler::checkFieldStorageDefinitionTranslatability($field_name) Checks the field storage definition for translatability support. Checks whether the given field is defined in the field storage definitions and if its definition specifies it as translatable. Parameters string $field_name: The name of the field. Return value bool TRUE if translatable field storage definition exists, FALSE otherwise. File core/modules/content_translation/src/ContentTranslationHandler.p

_content_translation_preprocess_language_content_settings_table

_content_translation_preprocess_language_content_settings_table(&$variables) (proxied) Implements hook_preprocess_HOOK(); File core/modules/content_translation/content_translation.admin.inc, line 170 The content translation administration forms. Code function _content_translation_preprocess_language_content_settings_table(&$variables) { // Alter the 'build' variable injecting the translation settings if the user // has the required permission. if (!\Drupal::currentUser()->has

Filter::$provider

The name of the provider that owns the filter. Type: string File core/modules/filter/src/Annotation/Filter.php, line 35 Class Filter Defines an filter annotation object. Namespace Drupal\filter\Annotation Code public $provider;

LoggerChannel::setCurrentUser

public LoggerChannel::setCurrentUser(AccountInterface $current_user = NULL) Sets the current user. Parameters \Drupal\Core\Session\AccountInterface|null $current_user: The current user object. Overrides LoggerChannelInterface::setCurrentUser File core/lib/Drupal/Core/Logger/LoggerChannel.php, line 152 Class LoggerChannel Defines a logger channel that most implementations will use. Namespace Drupal\Core\Logger Code public function setCurrentUser(AccountInterface $current_user = NULL) {

FileSystem::CHMOD_DIRECTORY

Default mode for new directories. See self::chmod(). File core/lib/Drupal/Core/File/FileSystem.php, line 17 Class FileSystem Provides helpers to operate on files and stream wrappers. Namespace Drupal\Core\File Code const CHMOD_DIRECTORY = 0775;

ExecutionContext::isObjectInitialized

public ExecutionContext::isObjectInitialized($cache_key) Returns whether an object was initialized. @internal Used by the validator engine. Should not be called by user code. Parameters string $cacheKey The hash of the object: Return value bool Whether the object was already initialized Overrides ExecutionContextInterface::isObjectInitialized See also ObjectInitializerInterface File core/lib/Drupal/Core/TypedData/Validation/ExecutionContext.php, line 305 Class ExecutionContext Defines a

AdminController::__construct

public AdminController::__construct(FormBuilderInterface $form_builder) Constructs an AdminController object. Parameters \Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder. File core/modules/comment/src/Controller/AdminController.php, line 37 Class AdminController Returns responses for comment module administrative routes. Namespace Drupal\comment\Controller Code public function __construct(FormBuilderInterface $form_builder) { $this->formBuilder = $form_build

FeedInterface::setHash

public FeedInterface::setHash($hash) Sets the calculated hash of the feed data, used for validating cache. Parameters string $hash: A string containing the calculated hash of the feed. Must contain US ASCII characters only. Return value \Drupal\aggregator\FeedInterface The class instance that this method is called on. File core/modules/aggregator/src/FeedInterface.php, line 174 Class FeedInterface Provides an interface defining an aggregator feed entity. Namespace Drupal\aggregator C