Find one category by it's name

@param string $name
356210
public function findOneByName($name)
    {
        $entityClass = $this->getEntityClass();

        return $this->getObjectManager()
                    ->getRepository($entityClass)
                    ->findOneByName($name);
    }
676556
protected function findRelativePathView($name)
    {
        $caller = Backtrace::getViewOrigin();
        return $this->findInPaths($name, [dirname($caller)]);
    }
1071329
public function findByName($name)
    {
        foreach ($this->findAll() as $datasourceNode) {
            if ($datasourceNode->getName() === $name) {
                return $datasourceNode;
            }
        }
    }
284884
protected function checkCache($name)
    {
        if (!isset($this->files[$name])) {
            $this->files[$name] = $this->getObject($name);
        }
    }
1132603
public function findChild($name) {
		foreach ($this->children as $child) {
			if ($child->name == $name) {
				return $child;
			}
		}

		return NULL;
	}
715774
protected function _findFirst(string $name)
    {
        $oid = AttributeType::attrNameToOID($name);
        foreach ($this->_attributes as $attr) {
            if ($attr->oid() == $oid) {
                return $attr;
            }
        }
        return null;
    }
977907
public function contains($name){
		foreach($this->segments as $segment){
			if($segment->getName() == $name) return true;
		}
		return false;
	}
658159
private function getClassContentClassnamesByCategory($name)
    {
        try {
            return $this->getCategoryManager()->getClassContentClassnamesByCategory($name);
        } catch (\InvalidArgumentException $e) {
            throw new NotFoundHttpException($e->getMessage());
        }
    }
737791
public function __isset($name)
    {
        return isset($this->children[$name]) && !is_null($this->children[$name]->getValue());
    }
792005
public function getFinder(string $name)
    {
        return $this->first(function (FinderItem $item) use ($name) {
            return $item->getName() === $name;
        });
    }
101366
public function findByComponentName($name = null)
    {
        return $this->model->with('component', 'priority', 'brand', 'jobs')->whereHas('component', function($q) use($name) {
                    $q->where('active', 1);
                    if (!is_null($name)) {
                        $q->where('name', $name);
                    }
                })->where('brand_id', brand_id());
    }
102018
public function find( $name )
    {
        if ( ! $this->getEnabledList()
                    ->isEnabled( $name ) )
        {
            return null;
        }

        $data = $this->queryData( $name );

        if ( $data )
        {
            $structure = new Structure( $data );
            $structure->setMapper( $this );
            return $structure;
        }

        return null;
    }
885800
public function findAllByName($name)
    {
        $appNodes = array();
        foreach ($this->findAll() as $appNode) {
            if ($appNode->getName() == $name) {
                $appNodes[$appNode->getPrimaryKey()] = $appNode;
            }
        }
        return $appNodes;
    }
609056
protected function filterMetaType(string $name): void
    {
        $types = $this->options[$name] ?? $this->getRequest()->input($name);

        if (is_string($types)) {
            $types = explode(',', $types);
        }

        $this->options[$name] = is_array($types) ? Arr::expand(array_flip($types)) : [];
    }
577325
public function findOneByName($name)
    {
        $qb = $this->getQueryBuilder();

        return $qb
            ->leftJoin('c.containers', 'container')
            ->leftJoin('container.rows', 'row')
            ->leftJoin('row.blocks', 'block')
            ->leftJoin('block.translations', 'block_t')
            ->addSelect('container', 'row', 'block', 'block_t')
            ->andWhere($qb->expr()->eq('c.name', ':name'))
            ->getQuery()
            ->useQueryCache(true)
            // TODO ->useResultCache(true, 3600, Content::getEntityTagPrefix() . '[name:'.$name.']')
            ->setParameter('name', $name)
            ->getOneOrNullResult();
    }
432900
private function findProperty($name)
    {
        foreach ($this->getProperties(true) as $property) {
            if ($property->getName() === $name) {
                return $property;
            }
        }

        return;
    }
283105
public function findHeaders($name)
    {
        return array_filter($this->getHeaders(), function ($header) use ($name) {
            return StringType::startsWith($header, "$name:");
        });
    }