You are here

protected function GroupNode::getNodeType in Group 8

Retrieves the node type this plugin supports.

Return value

\Drupal\node\NodeTypeInterface The node type this plugin supports.

File

modules/gnode/src/Plugin/GroupContentEnabler/GroupNode.php, line 37

Class

GroupNode
Provides a content enabler for nodes.

Namespace

Drupal\gnode\Plugin\GroupContentEnabler

Code

protected function getNodeType() {
  return NodeType::load($this
    ->getEntityBundle());
}