You are here

function micon_content_type_icon in Micon 8

Same name and namespace in other branches
  1. 2.x micon_content_type/micon_content_type.module \micon_content_type_icon()

Helper function for retrieving the icon from a node type.

The content type.

3 calls to micon_content_type_icon()
MiconContentTypeListBuilder::buildRow in micon_content_type/src/MiconContentTypeListBuilder.php
Builds a row for an entity in the entity listing.
micon_content_type_form_node_type_form_alter in micon_content_type/micon_content_type.module
Implements hook_form_FORM_ID_alter().
micon_content_type_micon_icons_alter in micon_content_type/micon_content_type.module
Implements hook_micon_icons_alter().

File

micon_content_type/micon_content_type.module, line 50
Contains micon_content_type.module.

Code

function micon_content_type_icon(NodeTypeInterface $type) {
  return $type
    ->getThirdPartySetting('micon_content_type', 'icon');
}