CssCommand::$selector

A CSS selector string. If the command is a response to a request from an #ajax form element then this value can be NULL. Type: string File core/lib/Drupal/Core/Ajax/CssCommand.php, line 28 Class CssCommand An AJAX command for calling the jQuery css() method. Namespace Drupal\Core\Ajax Code protected $selector;

CssCommand::$css

An array of property/value pairs to set in the CSS for the selector. Type: array File core/lib/Drupal/Core/Ajax/CssCommand.php, line 35 Class CssCommand An AJAX command for calling the jQuery css() method. Namespace Drupal\Core\Ajax Code protected $css = array();

CssCommand

An AJAX command for calling the jQuery css() method. The 'css' command will instruct the client to use the jQuery css() method to apply the CSS arguments to elements matched by the given selector. This command is implemented by Drupal.AjaxCommands.prototype.css() defined in misc/ajax.js. Hierarchy class \Drupal\Core\Ajax\CssCommand implements CommandInterface See also http://docs.jquery.com/CSS/css#properties Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Cor

CssCollectionRenderer::__construct

public CssCollectionRenderer::__construct(StateInterface $state) Constructs a CssCollectionRenderer. Parameters \Drupal\Core\State\StateInterface $state: The state key/value store. File core/lib/Drupal/Core/Asset/CssCollectionRenderer.php, line 69 Class CssCollectionRenderer Renders CSS assets. Namespace Drupal\Core\Asset Code public function __construct(StateInterface $state) { $this->state = $state; }

CssCollectionRenderer::render

public CssCollectionRenderer::render(array $css_assets) Renders an asset collection. Parameters array $assets: An asset collection. Return value array A render array to render the asset collection. Overrides AssetCollectionRendererInterface::render File core/lib/Drupal/Core/Asset/CssCollectionRenderer.php, line 76 Class CssCollectionRenderer Renders CSS assets. Namespace Drupal\Core\Asset Code public function render(array $css_assets) { $elements = array(); // A dummy query-stri

CssCollectionRenderer::$state

The state key/value store. Type: \Drupal\Core\State\StateInterface File core/lib/Drupal/Core/Asset/CssCollectionRenderer.php, line 61 Class CssCollectionRenderer Renders CSS assets. Namespace Drupal\Core\Asset Code protected $state;

CssCollectionRenderer

Renders CSS assets. For production websites, LINK tags are preferable to STYLE tags with @import statements, because: They are the standard tag intended for linking to a resource. On Firefox 2 and perhaps other browsers, CSS files included with @import statements don't get saved when saving the complete web page for offline use: https://www.drupal.org/node/145218. On IE, if only LINK tags and no @import statements are used, all the CSS files are downloaded in parallel, resulting in faster page

CssCollectionOptimizer::__construct

public CssCollectionOptimizer::__construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state) Constructs a CssCollectionOptimizer. Parameters \Drupal\Core\Asset\AssetCollectionGrouperInterface $grouper: The grouper for CSS assets. \Drupal\Core\Asset\AssetOptimizerInterface $optimizer: The optimizer for a single CSS asset. \Drupal\Core\Asset\AssetDumperInterface $dumper: The dumper for optimized CSS assets. \Drupal\

CssCollectionOptimizer::optimize

public CssCollectionOptimizer::optimize(array $css_assets) The cache file name is retrieved on a page load via a lookup variable that contains an associative array. The array key is the hash of the file names in $css while the value is the cache file name. The cache file is generated in two cases. First, if there is no file name value for the key, which will happen if a new file name has been added to $css or after the lookup variable is emptied to force a rebuild of the cache. Second, the cac

CssCollectionOptimizer::getAll

public CssCollectionOptimizer::getAll() Returns all optimized asset collections assets. Return value string[] URIs for all optimized asset collection assets. Overrides AssetCollectionOptimizerInterface::getAll File core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php, line 168 Class CssCollectionOptimizer Optimizes CSS assets. Namespace Drupal\Core\Asset Code public function getAll() { return $this->state->get('drupal_css_cache_files'); }