1 image.tokens.inc _image_style_token_image_attributes()

Helper function for getting all available image attributes.

Return value

array: All of the available image attributes.

File

core/modules/image/image.tokens.inc, line 223
Builds placeholder replacement tokens for image styles.

Code

function _image_style_token_image_attributes() {
  return array(
    'style_name' => NULL,
    'uri' => '',
    'path' => NULL,
    'path:relative' => NULL,
    'width' => NULL,
    'height' => NULL,
    'extension' => NULL,
    'filesize' => NULL,
    'alt' => '',
    'title' => NULL,
    'mimetype' => NULL,
    'first' => '',
    'second' => '',
    'third' => '',
    'last' => '',
  );
}