image_style_options

image_style_options($include_empty = TRUE) Gets an array of image styles suitable for using as select list options. Parameters $include_empty: If TRUE a '- None -' option will be inserted in the options array. Return value Array of image styles both key and value are set to style name. File core/modules/image/image.module, line 240 Exposes global functionality for creating image styles. Code function image_style_options($include_empty = TRUE) { $styles = ImageStyle::loadMultiple(); $opt

ContainerBuilder::__sleep

public ContainerBuilder::__sleep() File core/lib/Drupal/Core/DependencyInjection/ContainerBuilder.php, line 127 Class ContainerBuilder Drupal's dependency injection container builder. Namespace Drupal\Core\DependencyInjection Code public function __sleep() { assert(FALSE, 'The container was serialized.'); return array_keys(get_object_vars($this)); }

YamlDirectoryDiscovery::getDirectoryIterator

protected YamlDirectoryDiscovery::getDirectoryIterator($directory) Gets an iterator to loop over the files in the provided directory. This method exists so that it is easy to replace this functionality in a class that extends this one. For example, it could be used to make the scan recursive. Parameters string $directory: The directory to scan. Return value \Traversable An \Traversable object or array where the values are \SplFileInfo objects. File core/lib/Drupal/Component/Discovery/YamlDire

EntityStorageBase::loadMultiple

public EntityStorageBase::loadMultiple(array $ids = NULL) Loads one or more entities. Parameters $ids: An array of entity IDs, or NULL to load all entities. Return value \Drupal\Core\Entity\EntityInterface[] An array of entity objects indexed by their IDs. Returns an empty array if no matching entities are found. Overrides EntityStorageInterface::loadMultiple File core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 219 Class EntityStorageBase A base entity storage class. Namespace

EntityListBuilder

Defines a generic implementation to build a listing of entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterface Related topics Entity API Describes how to define and manipulate content and configuration entities. File core/lib/Drupal/Core/Entity/EntityListBuilder.php, line 12 Namespace Drupal\Core\Entity Members Na

EntityViewDisplayInterface

Provides a common interface for entity view displays. Hierarchy interface \Drupal\Core\Config\Entity\ConfigEntityInterface; interface \Drupal\Core\Entity\EntityWithPluginCollectionInterfaceinterface \Drupal\Core\Entity\Display\EntityDisplayInterfaceinterface \Drupal\Core\Entity\Display\EntityViewDisplayInterface File core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php, line 10 Namespace Drupal\Core\Entity\Display Members Name Modifiers Type Description Accessi

YamlDirectoryDiscovery::$fileCacheKeySuffix

The suffix for the file cache key. Type: string File core/lib/Drupal/Component/Discovery/YamlDirectoryDiscovery.php, line 35 Class YamlDirectoryDiscovery Discovers multiple YAML files in a set of directories. Namespace Drupal\Component\Discovery Code protected $fileCacheKeySuffix;

LocaleConfigManager

Manages configuration supported in part by interface translation. This manager is responsible to update configuration overrides and active translations when interface translation data changes. This allows Drupal to translate user roles, views, blocks, etc. after Drupal has been installed using the locale module's storage. When translations change in locale, LocaleConfigManager::updateConfigTranslations() is invoked to update the corresponding storage of the translation in the original config ob

FileSystem::moveUploadedFile

public FileSystem::moveUploadedFile($filename, $uri) Moves an uploaded file to a new location. PHP's move_uploaded_file() does not properly support streams if open_basedir is enabled, so this function fills that gap. Compatibility: normal paths and stream wrappers. Parameters string $filename: The filename of the uploaded file. string $uri: A string containing the destination URI of the file. Return value bool TRUE on success, or FALSE on failure. Overrides FileSystemInterface::moveUploadedFi

PoItem::$_plural

Flag indicating if this translation has plurals. Type: bool File core/lib/Drupal/Component/Gettext/PoItem.php, line 40 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code private $_plural;