concrete/src/Block/BlockType/Set.php
public function contains($bt)
    {
        $result = false;
        $btID = (int) (is_object($bt) ? $bt->getBlockTypeID() : $bt);
        if ($btID !== 0) {
            $app = Application::getFacadeApplication();
            $db = $app->make(Connection::class);
            $result = $db->fetchColumn('select btID from BlockTypeSetBlockTypes where btsID = ? and btID = ?', [$this->getBlockTypeSetID(), $btID]) !== false;
        }

        return $result;
    }
public function contains($bt)
    {
        $result = false;
        $btID = (int) (is_object($bt) ? $bt->getBlockTypeID() : $bt);
        if ($btID !== 0) {
            $app = Application::getFacadeApplication();
            $db = $app->make(Connection::class);
            $result = $db->fetchColumn('select btID from BlockTypeSetBlockTypes where btsID = ? and btID = ?', [$this->getBlockTypeSetID(), $btID]) !== false;
        }

        return $result;
    }
public function contains ( $ bt ) { $ result = false ; $ btID = ( int ) ( is_object ( $ bt ) ? $ bt -> getBlockTypeID ( ) : $ bt ) ; if ( $ btID !== 0 ) { $ app = Application :: getFacadeApplication ( ) ; $ db = $ app -> make ( Connection :: class ) ; $ result = $ db -> fetchColumn ( 'select btID from BlockTypeSetBlockTypes where btsID = ? and btID = ?' , [ $ this -> getBlockTypeSetID ( ) , $ btID ] ) !== false ; } return $ result ; }
Does this set contain a block type?

@param \Concrete\Core\Entity\Block\BlockType\BlockType|int $bt A block type (or its ID)

@return bool
Does this set contain a block type?