37 $this->_collectionFactory = $collectionFactory;
38 $this->_adminhtmlData = $adminhtmlData;
49 if (!$this->hasStart() || !$this->hasLimit() || !$this->hasQuery()) {
54 $query = $this->getQuery();
56 $collection = $this->_collectionFactory->create()->addAttributeToSelect(
58 )->addAttributeToSearchFilter(
60 [
'attribute' =>
'increment_id',
'like' =>
$query .
'%'],
61 [
'attribute' =>
'billing_firstname',
'like' =>
$query .
'%'],
62 [
'attribute' =>
'billing_lastname',
'like' =>
$query .
'%'],
63 [
'attribute' =>
'billing_telephone',
'like' =>
$query .
'%'],
64 [
'attribute' =>
'billing_postcode',
'like' =>
$query .
'%'],
65 [
'attribute' =>
'shipping_firstname',
'like' =>
$query .
'%'],
66 [
'attribute' =>
'shipping_lastname',
'like' =>
$query .
'%'],
67 [
'attribute' =>
'shipping_telephone',
'like' =>
$query .
'%'],
68 [
'attribute' =>
'shipping_postcode',
'like' =>
$query .
'%'],
78 'id' =>
'order/1/' .
$order->getId(),
79 'type' =>
__(
'Order'),
80 'name' =>
__(
'Order #%1',
$order->getIncrementId()),
81 'description' =>
$order->getFirstname() .
' ' .
$order->getLastname(),
82 'url' => $this->_adminhtmlData->getUrl(
'sales/order/view', [
'order_id' =>
$order->getId()]),
__construct(\Magento\Sales\Model\ResourceModel\Order\CollectionFactory $collectionFactory, \Magento\Backend\Helper\Data $adminhtmlData)