src/Liip/Drupal/Modules/Registry/Database/MySql.php
public function getContentById($identifier, $default = null)
    {
        if (empty($this->registry[$this->section][$identifier])) {

            $this->registry[$this->section][$identifier] = $this->getContentByIds(array($identifier));

            if (empty($this->registry[$this->section][$identifier])) {
                return $default;
            }
        }

        return $this->registry[$this->section][$identifier];
    }
public function getContentById($identifier, $default = null)
    {
        if (empty($this->registry[$this->section][$identifier])) {

            $this->registry[$this->section][$identifier] = $this->getContentByIds(array($identifier));

            if (empty($this->registry[$this->section][$identifier])) {
                return $default;
            }
        }

        return $this->registry[$this->section][$identifier];
    }
public function getContentById ( $ identifier , $ default = null ) { if ( empty ( $ this -> registry [ $ this -> section ] [ $ identifier ] ) ) { $ this -> registry [ $ this -> section ] [ $ identifier ] = $ this -> getContentByIds ( array ( $ identifier ) ) ; if ( empty ( $ this -> registry [ $ this -> section ] [ $ identifier ] ) ) { return $ default ; } } return $ this -> registry [ $ this -> section ] [ $ identifier ] ; }
Provides the registry content identified by its ID.

@param string $identifier
@param null $default

@throws \Liip\Drupal\Modules\Registry\RegistryException
@return array
Provides the registry content identified by its ID .