You are here

public function NodeTypesConfigHandler::getActionType in Node expire 7.2

Returns action type.

Parameters

string $node_type: Node type.

File

src/Module/Config/NodeTypesConfigHandler.php, line 83
NodeTypesConfigHandler class.

Class

NodeTypesConfigHandler
NodeTypesConfigHandler class.

Namespace

Drupal\node_expire\Module\Config

Code

public function getActionType($node_type) {
  $config = $this
    ->getNodeTypeConfig($node_type);
  if (isset($config['action_type'])) {
    $action_type = $config['action_type'];
  }
  else {
    $action_type = 0;
  }
  return $action_type;
}