TwigSandboxPolicy::checkMethodAllowed

public TwigSandboxPolicy::checkMethodAllowed($obj, $method) Overrides Twig_Sandbox_SecurityPolicyInterface::checkMethodAllowed File core/lib/Drupal/Core/Template/TwigSandboxPolicy.php, line 79 Class TwigSandboxPolicy Default sandbox policy for Twig templates. Namespace Drupal\Core\Template Code public function checkMethodAllowed($obj, $method) { foreach ($this->whitelisted_classes as $class => $key) { if ($obj instanceof $class) { return TRUE; } } // Return q

UpdateKernel::handle

public UpdateKernel::handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) Handles a Request to convert it to a Response. When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance. Parameters Request $request A Request instance: int $type The type of the request: (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) bool $catch Whether to catch exceptions or not: Return value Response A R

views_entity_field_label

views_entity_field_label($entity_type, $field_name) Returns the label of a certain field. Therefore it looks up in all bundles to find the most used field. File core/modules/views/views.views.inc, line 247 Provide views data that isn't tied to any other module. Code function views_entity_field_label($entity_type, $field_name) { $label_counter = array(); $all_labels = array(); // Count the amount of fields per label per field storage. foreach (array_keys(\Drupal::entityManager()->ge

FormAjaxSubscriber::getFormAjaxException

protected FormAjaxSubscriber::getFormAjaxException(\Exception $e) Extracts a form AJAX exception. Parameters \Exception $e: A generic exception that might contain a form AJAX exception. Return value \Drupal\Core\Form\FormAjaxException|null Either the form AJAX exception, or NULL if none could be found. File core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php, line 121 Class FormAjaxSubscriber Wraps AJAX form submissions that are triggered via an exception. Namespace Drupa

Drupal::menuTree

public static Drupal::menuTree() Returns the menu tree. Return value \Drupal\Core\Menu\MenuLinkTreeInterface The menu tree. File core/lib/Drupal.php, line 681 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function menuTree() { return static::getContainer()->get('menu.link_tree'); }

Delete::$table

The table from which to delete. Type: string File core/lib/Drupal/Core/Database/Query/Delete.php, line 22 Class Delete General class for an abstracted DELETE operation. Namespace Drupal\Core\Database\Query Code protected $table;

SearchPageRepository::getActiveSearchPages

public SearchPageRepository::getActiveSearchPages() Returns all active search page entities. Return value \Drupal\search\SearchPageInterface[] An array of active search page entities. Overrides SearchPageRepositoryInterface::getActiveSearchPages File core/modules/search/src/SearchPageRepository.php, line 43 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupal\search Code public function getActiveSearchPages() { $ids = $this->getQuery(

TermViewBuilder::alterBuild

protected TermViewBuilder::alterBuild(array &$build, EntityInterface $entity, EntityViewDisplayInterface $display, $view_mode) Specific per-entity building. Parameters array $build: The render array that is being created. \Drupal\Core\Entity\EntityInterface $entity: The entity to be prepared. \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The entity view display holding the display options configured for the entity components. string $view_mode: The view mode that should

FieldItemInterface::calculateDependencies

public static FieldItemInterface::calculateDependencies(FieldDefinitionInterface $field_definition) Calculates dependencies for field items. Dependencies are saved in the field configuration entity and are used to determine configuration synchronization order. For example, if the field type's default value is a content entity, this method should return an array of dependencies listing the content entities. Parameters \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field defi

ContentEntityStorageBase::invokeStorageLoadHook

protected ContentEntityStorageBase::invokeStorageLoadHook(array &$entities) Invokes hook_entity_storage_load(). Parameters \Drupal\Core\Entity\ContentEntityInterface[] $entities: List of entities, keyed on the entity ID. File core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php, line 383 Class ContentEntityStorageBase Base class for content entity storage handlers. Namespace Drupal\Core\Entity Code protected function invokeStorageLoadHook(array &$entities) { if (!empty($