lib/Block/BlockDefinition/Configuration/ViewType.php
public function getItemViewType(string $itemViewType): ItemViewType
    {
        if (!$this->hasItemViewType($itemViewType)) {
            throw BlockDefinitionException::noItemViewType($this->identifier, $itemViewType);
        }

        return $this->itemViewTypes[$itemViewType];
    }
public function getItemViewType(string $itemViewType): ItemViewType
    {
        if (!$this->hasItemViewType($itemViewType)) {
            throw BlockDefinitionException::noItemViewType($this->identifier, $itemViewType);
        }

        return $this->itemViewTypes[$itemViewType];
    }
public function getItemViewType ( string $ itemViewType ) : ItemViewType { if ( ! $ this -> hasItemViewType ( $ itemViewType ) ) { throw BlockDefinitionException :: noItemViewType ( $ this -> identifier , $ itemViewType ) ; } return $ this -> itemViewTypes [ $ itemViewType ] ; }
Returns the item view type with provided identifier.

@throws \Netgen\BlockManager\Exception\Block\BlockDefinitionException If item view type does not exist
Returns the item view type with provided identifier .