protected function getAdminsRoleEntity(Table $table) : ?EntityInterface
    {
        $result = $table->find()
            ->enableHydration(true)
            ->where(['name' => $this->role])
            ->first();

        Assert::nullOrIsInstanceOf($result, EntityInterface::class);

        return $result;
    }
protected function getAdminsRoleEntity(Table $table) : ?EntityInterface
    {
        $result = $table->find()
            ->enableHydration(true)
            ->where(['name' => $this->role])
            ->first();

        Assert::nullOrIsInstanceOf($result, EntityInterface::class);

        return $result;
    }
protected function getAdminsRoleEntity ( Table $ table ) : ? EntityInterface { $ result = $ table -> find ( ) -> enableHydration ( true ) -> where ( [ 'name' => $ this -> role ] ) -> first ( ) ; Assert :: nullOrIsInstanceOf ( $ result , EntityInterface :: class ) ; return $ result ; }
Get 'Admins' role with its capabilities.

@param  \Cake\ORM\Table $table Table instance
@return \Cake\Datasource\EntityInterface|null
Get Admins role with its capabilities .