AnnotationInterface::setClass

public AnnotationInterface::setClass($class) Sets the class of the annotated class. Parameters string $class: File core/lib/Drupal/Component/Annotation/AnnotationInterface.php, line 48 Class AnnotationInterface Defines a common interface for classed annotations. Namespace Drupal\Component\Annotation Code public function setClass($class);

BaseFieldDefinition::setDefaultValueCallback

public BaseFieldDefinition::setDefaultValueCallback($callback) File core/lib/Drupal/Core/Field/BaseFieldDefinition.php, line 498 Class BaseFieldDefinition A class for defining entity fields. Namespace Drupal\Core\Field Code public function setDefaultValueCallback($callback) { if (isset($callback) && !is_string($callback)) { throw new \InvalidArgumentException('Default value callback must be a string, like "function_name" or "ClassName::methodName"'); } $this->defin

FileSystem::realpath

public FileSystem::realpath($uri) Resolves the absolute filepath of a local URI or filepath. The use of this method is discouraged, because it does not work for remote URIs. Except in rare cases, URIs should not be manually resolved. Only use this function if you know that the stream wrapper in the URI uses the local file system, and you need to pass an absolute path to a function that is incompatible with stream URIs. Parameters string $uri: A stream wrapper URI or a filepath, possibly includ

CommentLinkBuilder::$moduleHandler

Module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/comment/src/CommentLinkBuilder.php, line 43 Class CommentLinkBuilder Defines a class for building markup for comment links on a commented entity. Namespace Drupal\comment Code protected $moduleHandler;

CommentLinkBuilder::$entityManager

The entity manager service. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/comment/src/CommentLinkBuilder.php, line 50 Class CommentLinkBuilder Defines a class for building markup for comment links on a commented entity. Namespace Drupal\comment Code protected $entityManager;

CommentLinkBuilderInterface::buildCommentedEntityLinks

public CommentLinkBuilderInterface::buildCommentedEntityLinks(FieldableEntityInterface $entity, array &$context) Builds links for the given entity. Parameters \Drupal\Core\Entity\FieldableEntityInterface $entity: Entity for which the links are being built. array $context: Array of context passed from the entity view builder. Return value array Array of entity links. File core/modules/comment/src/CommentLinkBuilderInterface.php, line 25 Class CommentLinkBuilderInterface Defines an int

CommentInterface::getTypeId

public CommentInterface::getTypeId() Get the comment type id for this comment. Return value string The id of the comment type. File core/modules/comment/src/CommentInterface.php, line 253 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getTypeId();

QueryAggregate::conditionAggregateGroupFactory

public QueryAggregate::conditionAggregateGroupFactory($conjunction = 'AND') Creates an object holding a group of conditions. See andConditionAggregateGroup() and orConditionAggregateGroup() for more. Parameters string $conjunction: AND (default): this is the equivalent of andConditionAggregateGroup(). OR: this is the equivalent of andConditionAggregateGroup(). Return value ConditionInterface An object holding a group of conditions. Overrides QueryAggregateInterface::conditionAggregateGrou

DynamicallyFieldableEntityStorageInterface::hasData

public DynamicallyFieldableEntityStorageInterface::hasData() Determines if the storage contains any data. Return value bool TRUE if the storage contains data, FALSE if not. File core/lib/Drupal/Core/Entity/DynamicallyFieldableEntityStorageInterface.php, line 27 Class DynamicallyFieldableEntityStorageInterface A storage that supports entity types with dynamic field definitions. Namespace Drupal\Core\Entity Code public function hasData();

LibraryDependencyResolverInterface

Resolves the dependencies of asset (CSS/JavaScript) libraries. Hierarchy interface \Drupal\Core\Asset\LibraryDependencyResolverInterface File core/lib/Drupal/Core/Asset/LibraryDependencyResolverInterface.php, line 8 Namespace Drupal\Core\Asset Members Name Modifiers Type Description LibraryDependencyResolverInterface::getLibrariesWithDependencies public function Gets the given libraries with their dependencies. LibraryDependencyResolverInterface::getMinimalRepresentati