EntityViewController::$entityManager

The entity manager Type: \Drupal\Core\Entity\EntityManagerInterface File core/lib/Drupal/Core/Entity/Controller/EntityViewController.php, line 22 Class EntityViewController Defines a generic controller to render a single entity. Namespace Drupal\Core\Entity\Controller Code protected $entityManager;

ImageInterface::getSource

public ImageInterface::getSource() Retrieves the source path of the image file. Return value string The source path of the image file. An empty string if the source is not set. File core/lib/Drupal/Core/Image/ImageInterface.php, line 58 Class ImageInterface Provides an interface for image objects. Namespace Drupal\Core\Image Code public function getSource();

image_file_download

image_file_download($uri) Implements hook_file_download(). Control the access to files underneath the styles directory. File core/modules/image/image.module, line 169 Exposes global functionality for creating image styles. Code function image_file_download($uri) { $path = file_uri_target($uri); // Private file access for image style derivatives. if (strpos($path, 'styles/') === 0) { $args = explode('/', $path); // Discard "styles", style name, and scheme from the path $arg

AccountProxy::getEmail

public AccountProxy::getEmail() Returns the email address of this account. Return value string The email address. Overrides AccountInterface::getEmail File core/lib/Drupal/Core/Session/AccountProxy.php, line 137 Class AccountProxy A proxied implementation of AccountInterface. Namespace Drupal\Core\Session Code public function getEmail() { return $this->getAccount()->getEmail(); }

TextFormat::configFactory

protected static TextFormat::configFactory() Wraps the config factory. Return value \Drupal\Core\Config\ConfigFactoryInterface File core/modules/filter/src/Element/TextFormat.php, line 264 Class TextFormat Provides a text format render element. Namespace Drupal\filter\Element Code protected static function configFactory() { return \Drupal::configFactory(); }

DateTimePlus::checkErrors

public DateTimePlus::checkErrors() Examines getLastErrors() to see what errors to report. Two kinds of errors are important: anything that DateTime considers an error, and also a warning that the date was invalid. PHP creates a valid date from invalid data with only a warning, 2011-02-30 becomes 2011-03-03, for instance, but we don't want that. See also http://php.net/manual/time.getlasterrors.php File core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 441 Class DateTimePlus Wraps

UuidInterface::generate

public UuidInterface::generate() Generates a Universally Unique IDentifier (UUID). Return value A 16 byte integer represented as a hex string formatted with 4 hyphens. File core/lib/Drupal/Component/Uuid/UuidInterface.php, line 16 Class UuidInterface Interface for generating UUIDs. Namespace Drupal\Component\Uuid Code public function generate();

drupal_move_uploaded_file

drupal_move_uploaded_file($filename, $uri) Moves an uploaded file to a new location. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\File\FileSystem::moveUploadedFile(). Related topics File interface Common file handling functions. File core/includes/file.inc, line 923 API for handling file uploads and server file management. Code function drupal_move_uploaded_file($filename, $uri) { return \Drupal::service('file_system')->moveUploadedFile($file

EntityType::getPermissionGranularity

public EntityType::getPermissionGranularity() Gets the permission granularity level. The allowed values are respectively "entity_type" or "bundle". Return value string Whether a module exposing permissions for the current entity type should use entity-type level granularity or bundle level granularity. Overrides EntityTypeInterface::getPermissionGranularity File core/lib/Drupal/Core/Entity/EntityType.php, line 603 Class EntityType Provides an implementation of an entity type and its metad

SqlContentEntityStorage::save

public SqlContentEntityStorage::save(EntityInterface $entity) Saves the entity permanently. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to save. Return value SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed. Throws \Drupal\Core\Entity\EntityStorageException In case of failures, an exception is thrown. Overrides EntityStorageBase::save File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 758 Class SqlContentEntityStorage