You are here

function crossdomain_load in Crossdomain 8

Menu argument loader: Loads a node type by string.

Parameters

$name: The machine name of a domain to load.

Return value

\Drupal\crossdomain\CrossdomainInterface A node type object or NULL if $name does not exist.

File

./crossdomain.module, line 38

Code

function crossdomain_load($name) {
  debug($name);
  return entity_load('crossdomain', $name);
}