lib/Block/BlockDefinition/Configuration/Collection.php
public function isValidItemType(string $itemType): bool
    {
        if (!is_array($this->validItemTypes)) {
            return true;
        }

        return in_array($itemType, $this->validItemTypes, true);
    }
public function isValidItemType(string $itemType): bool
    {
        if (!is_array($this->validItemTypes)) {
            return true;
        }

        return in_array($itemType, $this->validItemTypes, true);
    }
public function isValidItemType ( string $ itemType ) : bool { if ( ! is_array ( $ this -> validItemTypes ) ) { return true ; } return in_array ( $ itemType , $ this -> validItemTypes , true ) ; }
Returns if the provided item type is valid.
Returns if the provided item type is valid .