twig_theme

twig_theme($existing, $type, $theme, $path) Implements hook_theme(). File core/themes/engines/twig/twig.engine, line 15 Handles integration of Twig templates with the Drupal theme system. Code function twig_theme($existing, $type, $theme, $path) { $templates = drupal_find_theme_functions($existing, array($theme)); $templates += drupal_find_theme_templates($existing, '.html.twig', $path); return $templates; }

twig_without

twig_without($element) Removes child elements from a copy of the original array. Creates a copy of the renderable array and removes child elements by key specified through filter's arguments. The copy can be printed without these elements. The original renderable array is still available and can be used to print child elements in their entirety in the twig template. Parameters array|object $element: The parent renderable array to exclude the child items. string[] $args, ...: The string keys of

Typed Data API

API for describing data based on a set of available data types. PHP has data types, such as int, string, float, array, etc., and it is an object-oriented language that lets you define classes and interfaces. However, in some cases, it is useful to be able to define an abstract type (as in an interface, free of implementation details), that still has properties (which an interface cannot) as well as meta-data. The Typed Data API provides this abstraction. Overview Each data type in the Typed Dat

TypedConfigInterface

Interface for a typed configuration object that contains multiple elements. A list of typed configuration contains any number of items whose type will depend on the configuration schema but also on the configuration data being parsed. When implementing this interface which extends Traversable, make sure to list IteratorAggregate or Iterator before this interface in the implements clause. Hierarchy interface \Drupal\Core\TypedData\TypedDataInterfaceinterface \Drupal\Core\TypedData\TraversableTyp

TypedConfigInterface::get

public TypedConfigInterface::get($name) Gets a contained typed configuration element. Parameters $name: The name of the property to get; e.g., 'title' or 'name'. Nested elements can be get using multiple dot delimited names, for example, 'page.front'. Return value \Drupal\Core\TypedData\TypedDataInterface The property object. Throws \InvalidArgumentException If an invalid property name is given. File core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php, line 49 Class TypedConfigIn

TypedConfigInterface::getElements

public TypedConfigInterface::getElements() Gets an array of contained elements. Return value array Array of \Drupal\Core\TypedData\TypedDataInterface objects. File core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php, line 33 Class TypedConfigInterface Interface for a typed configuration object that contains multiple elements. Namespace Drupal\Core\Config\Schema Code public function getElements();

TypedConfigInterface::isEmpty

public TypedConfigInterface::isEmpty() Determines whether the data structure is empty. Return value bool TRUE if the data structure is empty, FALSE otherwise. File core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php, line 25 Class TypedConfigInterface Interface for a typed configuration object that contains multiple elements. Namespace Drupal\Core\Config\Schema Code public function isEmpty();

TypedConfigInterface::toArray

public TypedConfigInterface::toArray() Returns an array of all property values. Return value array An array of property values, keyed by property name. File core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php, line 57 Class TypedConfigInterface Interface for a typed configuration object that contains multiple elements. Namespace Drupal\Core\Config\Schema Code public function toArray();

TypedConfigManager

Manages config schema type plugins. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\TypedData\TypedDataManager implements TypedDataManagerInterface uses DependencySerializationTraitclass \Drupal\Core\Config\TypedConfigManager implem

TypedConfigManager::$configStorage

A storage instance for reading configuration data. Type: \Drupal\Core\Config\StorageInterface File core/lib/Drupal/Core/Config/TypedConfigManager.php, line 22 Class TypedConfigManager Manages config schema type plugins. Namespace Drupal\Core\Config Code protected $configStorage;