You are here

public function NodeTypeConfigHandler::getNodeTypeConfig in Node expire 7.2

Returns single node type config.

3 calls to NodeTypeConfigHandler::getNodeTypeConfig()
NodeTypeConfigHandler::getUpdateExpiryInterval in src/Module/Config/NodeTypeConfigHandler.php
Returns update expiry interval.
NodeTypeConfigHandler::getUpdateExpiryMultiplier in src/Module/Config/NodeTypeConfigHandler.php
Returns update expiry multiplier.
NodeTypeConfigHandler::getUpdateExpiryStart in src/Module/Config/NodeTypeConfigHandler.php
Returns update expiry start.

File

src/Module/Config/NodeTypeConfigHandler.php, line 68
NodeTypeConfigHandler class.

Class

NodeTypeConfigHandler
NodeTypeConfigHandler class.

Namespace

Drupal\node_expire\Module\Config

Code

public function getNodeTypeConfig() {
  if (isset($this->nodeTypeConfigs[$this->nodeType]) and $n_type_config = $this->nodeTypeConfigs[$this->nodeType]) {
    return $n_type_config;
  }
  else {
    return $this
      ->getNodeTypeConfigDefault();
  }
}