Condition::exists

public Condition::exists($field, $langcode = NULL) Queries for the existence of a field. Parameters $field: string $langcode: Return value ConditionInterface Overrides ConditionInterface::exists See also \Drupal\Core\Entity\Query\QueryInterface::exists() File core/lib/Drupal/Core/Entity/Query/Sql/Condition.php, line 62 Class Condition Implements entity query conditions for SQL databases. Namespace Drupal\Core\Entity\Query\Sql Code public function exists($field, $langcode = NULL) {

ImageStyleInterface::deleteImageEffect

public ImageStyleInterface::deleteImageEffect(ImageEffectInterface $effect) Deletes an image effect from this style. Parameters \Drupal\image\ImageEffectInterface $effect: The image effect object. Return value $this File core/modules/image/src/ImageStyleInterface.php, line 195 Class ImageStyleInterface Provides an interface defining an image style entity. Namespace Drupal\image Code public function deleteImageEffect(ImageEffectInterface $effect);

book_node_load

book_node_load($nodes) Implements hook_ENTITY_TYPE_load() for node entities. File core/modules/book/book.module, line 214 Allows users to create and organize related content in an outline. Code function book_node_load($nodes) { /** @var \Drupal\book\BookManagerInterface $book_manager */ $book_manager = \Drupal::service('book.manager'); $links = $book_manager->loadBookLinks(array_keys($nodes), FALSE); foreach ($links as $record) { $nodes[$record['nid']]->book = $record; $

ImageToolkitInterface::apply

public ImageToolkitInterface::apply($operation, array $arguments = array()) Applies a toolkit operation to an image. Parameters string $operation: The toolkit operation to be processed. array $arguments: An associative array of arguments to be passed to the toolkit operation, e.g. array('width' => 50, 'height' => 100, 'upscale' => TRUE). Return value bool TRUE if the operation was performed successfully, FALSE otherwise. File core/lib/Drupal/Core/ImageToolkit/ImageToolkitInterface.ph

ActionFormBase::__construct

public ActionFormBase::__construct(EntityStorageInterface $storage) Constructs a new action form. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The action storage. File core/modules/action/src/ActionFormBase.php, line 36 Class ActionFormBase Provides a base form for action forms. Namespace Drupal\action Code public function __construct(EntityStorageInterface $storage) { $this->storage = $storage; }

EntityDataDefinition::createFromDataType

public static EntityDataDefinition::createFromDataType($data_type) Creates a new data definition object. This method is typically used by \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() to build a definition object for an arbitrary data type. When the definition class is known, it is recommended to directly use the static create() method on that class instead; e.g.: $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create(); Parameters string $data_type: The data t

CacheableMetadata::createFromObject

public static CacheableMetadata::createFromObject($object) Creates a CacheableMetadata object from a depended object. Parameters \Drupal\Core\Cache\CacheableDependencyInterface|mixed $object: The object whose cacheability metadata to retrieve. If it implements CacheableDependencyInterface, its cacheability metadata will be used, otherwise, the passed in object must be assumed to be uncacheable, so max-age 0 is set. Return value static File core/lib/Drupal/Core/Cache/CacheableMetadata.php, lin

ListInterface::get

public ListInterface::get($index) Returns the item at the specified position in this list. Parameters int $index: Index of the item to return. Return value \Drupal\Core\TypedData\TypedDataInterface|null The item at the specified position in this list, or NULL if no item exists at that position. Throws \Drupal\Core\TypedData\Exception\MissingDataException If the complex data structure is unset and no item can be created. File core/lib/Drupal/Core/TypedData/ListInterface.php, line 57 Class

EntityDisplayBase::CUSTOM_MODE

The 'mode' for runtime EntityDisplay objects used to render entities with arbitrary display options rather than a configured view mode or form mode. @todo Prevent creation of a mode with this ID https://www.drupal.org/node/2410727 File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 22 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code const CUSTOM_MODE = '_custom';

ForumManager::unreadTopics

public ForumManager::unreadTopics($term, $uid) Calculates the number of new posts in a forum that the user has not yet read. Nodes are new if they are newer than HISTORY_READ_LIMIT. Parameters int $term: The term ID of the forum. int $uid: The user ID. Return value The number of new posts in the forum that have not been read by the user. Overrides ForumManagerInterface::unreadTopics File core/modules/forum/src/ForumManager.php, line 476 Class ForumManager Provides forum manager service.