public function getElement ($key, $elementType)
    {
        $elements = $this->getAllElements($elementType);

        return array_key_exists($key, $elements)
            ? $elements[$key]
            : null;
    }
public function getElement ($key, $elementType)
    {
        $elements = $this->getAllElements($elementType);

        return array_key_exists($key, $elements)
            ? $elements[$key]
            : null;
    }
public function getElement ( $ key , $ elementType ) { $ elements = $ this -> getAllElements ( $ elementType ) ; return array_key_exists ( $ key , $ elements ) ? $ elements [ $ key ] : null ; }
Returns the preview by key

@param string $key
@param string $elementType

@return Element|null
Returns the preview by key