MissingContentEvent

Wraps a configuration event for event listeners. Hierarchy class \Symfony\Component\EventDispatcher\Eventclass \Drupal\Core\Config\Importer\MissingContentEvent See also \Drupal\Core\Config\Config\ConfigEvents::IMPORT_MISSING_CONTENT File core/lib/Drupal/Core/Config/Importer/MissingContentEvent.php, line 12 Namespace Drupal\Core\Config\Importer Members Name Modifiers Type Description Event::$dispatcher private property Event::$name private property Event::$pro

minimal_install

minimal_install() Implements hook_install(). Performs actions to set up the site for this profile. See also system_install() File core/profiles/minimal/minimal.install, line 15 Install, update and uninstall functions for the minimal installation profile. Code function minimal_install() { // Disable the user pictures on nodes. \Drupal::configFactory()->getEditable('system.theme.global')->set('features.node_user_picture', FALSE)->save(TRUE); // Allow visitor account creation, b

MimeTypeGuesser::__construct

public MimeTypeGuesser::__construct(StreamWrapperManagerInterface $stream_wrapper_manager) Constructs a MimeTypeGuesser object. Parameters StreamWrapperManagerInterface $stream_wrapper_manager: The stream wrapper manager. File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 47 Class MimeTypeGuesser Defines a MIME type guesser that also supports stream wrapper paths. Namespace Drupal\Core\File\MimeType Code public function __construct(StreamWrapperManagerInterface $stream_

MimeTypeGuesser::sortGuessers

protected MimeTypeGuesser::sortGuessers() Sorts guessers according to priority. Return value \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface[] A sorted array of MIME type guesser objects. File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 100 Class MimeTypeGuesser Defines a MIME type guesser that also supports stream wrapper paths. Namespace Drupal\Core\File\MimeType Code protected function sortGuessers() { $sorted = array(); krsort($this-&g

MimeTypeGuesser::registerWithSymfonyGuesser

public static MimeTypeGuesser::registerWithSymfonyGuesser(ContainerInterface $container) A helper function to register with Symfony's singleton MIME type guesser. Symfony's default mimetype guessers have dependencies on PHP's fileinfo extension or being able to run the system command file. Drupal's guesser does not have these dependencies. See also \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 119 Class Mim

MimeTypeGuesser::guess

public MimeTypeGuesser::guess($path) Guesses the mime type of the file with the given path. Parameters string $path The path to the file: Return value string The mime type or NULL, if none could be guessed Throws FileNotFoundException If the file does not exist AccessDeniedException If the file could not be read Overrides MimeTypeGuesserInterface::guess File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 54 Class MimeTypeGuesser Defines a MIME type guesser that also suppor

MimeTypeGuesser::addGuesser

public MimeTypeGuesser::addGuesser(MimeTypeGuesserInterface $guesser, $priority = 0) Appends a MIME type guesser to the guessers chain. Parameters \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface $guesser: The guesser to be appended. int $priority: The priority of the guesser being added. Return value $this File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 87 Class MimeTypeGuesser Defines a MIME type guesser that also supports stream wrapper paths.

MimeTypeGuesser::$streamWrapperManager

The stream wrapper manager. Type: \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 39 Class MimeTypeGuesser Defines a MIME type guesser that also supports stream wrapper paths. Namespace Drupal\Core\File\MimeType Code protected $streamWrapperManager;

MimeTypeGuesser::$sortedGuessers

Holds the array of guessers sorted by priority. If this is NULL a rebuild will be triggered. Type: \Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface[] See also \Drupal\Core\File\MimeType\MimeTypeGuesser::addGuesser() \Drupal\Core\File\MimeType\MimeTypeGuesser::sortGuessers() File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 32 Class MimeTypeGuesser Defines a MIME type guesser that also supports stream wrapper paths. Namespace Drupal\Core\File\Mime

MimeTypeGuesser::$guessers

An array of arrays of registered guessers keyed by priority. Type: array File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 20 Class MimeTypeGuesser Defines a MIME type guesser that also supports stream wrapper paths. Namespace Drupal\Core\File\MimeType Code protected $guessers = array();